import request from '../utils/request';
export const api_login=(data)=>request.post("/users/checkLogin",data);
export const api_query=(data)=>request.get("/users/list",data);
export const api_save=(data)=>request.post("/users/add",data);
export const api_delete=(data)=>request.get("/users/del",data);
export const api_update=(data)=>request.post("/users/edit",data);
// 获取个人中心的接口
export const api_personal=()=>request.get("/users/info");
export const api_editupd=(data)=>request.get("/users/avataredit",data);
export const api_editpwd=(data)=>request.post("/users/editpwd",data)

// 检查旧密码是否输入正确
export const api_checkoldpwd=(data)=>request.get("/users/checkoldpwd",data);